| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 27 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | function post_done(jqXHR)  | 
            ||
| 14 | function submit_page(e)  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 15 | { | 
            ||
| 16 |     var obj = {}; | 
            ||
| 17 |     obj.name = $('#name').val(); | 
            ||
| 18 | if(obj.name.length === 0)  | 
            ||
| 19 |     { | 
            ||
| 20 |         $('#name').parent().addClass('has-error') | 
            ||
| 21 | return;  | 
            ||
| 22 | }  | 
            ||
| 23 |     $('#name').parent().removeClass('has-error') | 
            ||
| 24 |     if($('#presenting:checked').length > 0) | 
            ||
| 25 |     { | 
            ||
| 26 | obj.presenting = true;  | 
            ||
| 27 | }  | 
            ||
| 28 | else  | 
            ||
| 29 |     { | 
            ||
| 30 | obj.presenting = false;  | 
            ||
| 31 | }  | 
            ||
| 32 |     $.ajax({ | 
            ||
| 33 | url: 'api/v1/themes',  | 
            ||
| 34 | type: 'post',  | 
            ||
| 35 | dataType: 'json',  | 
            ||
| 36 | data: JSON.stringify(obj),  | 
            ||
| 37 | processData: false,  | 
            ||
| 38 | complete: post_done  | 
            ||
| 39 | });  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 48 | 
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.